import React from 'react'
import { View, Text, StyleSheet } from 'react-native'
import { ScaleT, ScaleS } from 'src/utils/ScreenUtil'
class JobPartTimeHeader extends React.Component {
  constructor (props) {
    super(props)
    this.typeList = ['兼职岗位', '全职岗位', '实习岗位']
  }

  render () {
    const { data, type } = this.props
    return <View style={styles.view}>
      <Text style={styles.title}>{this.typeList[type]}</Text>
      <Text style={styles.size}>{(data || []).length || 0}</Text>
    </View>
  }
}
export default JobPartTimeHeader
const styles = StyleSheet.create({
  view: {
    marginLeft: ScaleS(20),
    marginTop: ScaleS(17),
    alignItems: 'stretch',
    flexDirection: 'row',
    marginBottom: ScaleS(30)
  },
  title: {
    fontSize: ScaleT(25),
    fontWeight: '600',
    color: 'rgba(68,68,68,1)'
  },
  size: {
    marginLeft: ScaleS(5),
    fontWeight: 'bold',
    color: 'rgba(68,68,68,1)'
  }
})
